package com.youhome.service.impl;

import com.youhome.mapper.HotCityMapper;
import com.youhome.model.HotCity;
import com.youhome.model.HotCityHouseCount;
import com.youhome.service.HotCityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by chen365 on 2018/08/06.
 */
@Service
public class HotCityServiceImpl implements HotCityService {

    @Autowired
    private HotCityMapper hotCityMapper;

    @Override
    public List<HotCity> selectAll() {
        return hotCityMapper.selectAll();
    }

    @Override
    public List<HotCityHouseCount> selectHouseCount() {
        return hotCityMapper.selectHouseCount();
    }
}
